home *** CD-ROM | disk | FTP | other *** search
- /*
- * gfm_stubs.c - Notify and event callback function stubs.
- * This file was generated by `gxv' from `gfm.G'.
- */
-
- #include <stdio.h>
- #include <sys/param.h>
- #include <sys/types.h>
- #include <xview/xview.h>
- #include <xview/panel.h>
- #include <xview/textsw.h>
- #include <xview/xv_xrect.h>
- #include <group.h>
- #include "gfm_ui.h"
-
-
- /*
- * Global object definitions.
- */
- gfm_popup_objects *Gfm_popup;
-
- #ifdef MAIN
-
- /*
- * Instance XV_KEY_DATA key. An instance is a set of related
- * user interface objects. A pointer to an object's instance
- * is stored under this key in every object. This must be a
- * global variable.
- */
- Attr_attribute INSTANCE;
-
- main(argc, argv)
- int argc;
- char **argv;
- {
- /*
- * Initialize XView.
- */
- xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, NULL);
- INSTANCE = xv_unique_key();
-
- /*
- * Initialize user interface components.
- * Do NOT edit the object initializations by hand.
- */
- Gfm_popup = gfm_popup_objects_initialize(NULL, NULL);
-
-
- /*
- * Turn control over to XView.
- */
- xv_main_loop(Gfm_popup->popup);
- exit(0);
- }
-
- #endif
-
-
- /*
- * Event callback function for `popup'.
- */
- Notify_value
- gfm_resize(win, event, arg, type)
- Xv_window win;
- Event *event;
- Notify_arg arg;
- Notify_event_type type;
- {
- gfm_popup_objects *ip = (gfm_popup_objects *) xv_get(win, XV_KEY_DATA, INSTANCE);
-
- fprintf(stderr, "gfm: gfm_resize: event %d\n", event_id(event));
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-
- /* gxv_end_connections */
-
- return notify_next_event_func(win, (Notify_event) event, arg, type);
- }
-
- /*
- * Notify callback function for `list'.
- */
- int
- gfm_list_proc(item, string, client_data, op, event, row)
- Panel_item item;
- char *string;
- Xv_opaque client_data;
- Panel_list_op op;
- Event *event;
- int row;
- {
- gfm_popup_objects *ip = (gfm_popup_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- switch(op) {
- case PANEL_LIST_OP_DESELECT:
- fprintf(stderr, "gfm: gfm_list_proc: PANEL_LIST_OP_DESELECT: %s\n",string);
- break;
-
- case PANEL_LIST_OP_SELECT:
- fprintf(stderr, "gfm: gfm_list_proc: PANEL_LIST_OP_SELECT: %s\n",string);
- break;
-
- case PANEL_LIST_OP_VALIDATE:
- fprintf(stderr, "gfm: gfm_list_proc: PANEL_LIST_OP_VALIDATE: %s\n",string);
- break;
-
- case PANEL_LIST_OP_DELETE:
- fprintf(stderr, "gfm: gfm_list_proc: PANEL_LIST_OP_DELETE: %s\n",string);
- break;
- }
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-
- /* gxv_end_connections */
-
- return XV_OK;
- }
-
- /*
- * Notify callback function for `file'.
- */
- Panel_setting
- gfm_file_notify(item, event)
- Panel_item item;
- Event *event;
- {
- gfm_popup_objects *ip = (gfm_popup_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
- char * value = (char *) xv_get(item, PANEL_VALUE);
-
- fprintf(stderr, "gfm: gfm_file_notify: value: %s\n", value);
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-
- /* gxv_end_connections */
-
- return panel_text_notify(item, event);
- }
-
- /*
- * Notify callback function for `load'.
- */
- void
- gfm_open(item, event)
- Panel_item item;
- Event *event;
- {
- gfm_popup_objects *ip = (gfm_popup_objects *) xv_get(item, XV_KEY_DATA, INSTANCE);
-
- fputs("gfm: gfm_open\n", stderr);
-
- /* gxv_start_connections DO NOT EDIT THIS SECTION */
-
- /* gxv_end_connections */
-
- }
-
-